//app.js
App({
  onLaunch: function() {
    if (!wx.cloud) {
      console.error('请使用 2.2.3 或以上的基础库以使用云能力')
    } else {
      wx.cloud.init({
        traceUser: true,
      })
    }
    const sysInfo = wx.getSystemInfoSync()
    const {windowWidth,windowHeight,brand,model,platform} = sysInfo;
    // console.log(sysInfo)
    const windowWidthRpx = 750;
    const scaleRate =windowWidth / 750;
    const windowHeightRpx=windowHeight/scaleRate;
    this.globalData = {
      openid: null,
      userInfo:{},
      tempMissionDetail:null,
      selfMission:[],
      windowWidth,
      windowWidthRpx,
      windowHeight,
      windowHeightRpx,
      scaleRate,
      brand,
      model,
      platform,
      invite:null
    }
  }
})